<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>{{ user.username }}</title>
</head>

<body>
    <h1>{{ foo }}, {{ bar }}</h1>
    <hr>
    <a href="{{ url_for('index') }}">&larr; Return</a>
    <h2>{{ user.username|upper }}</h2>
    {% if user.bio %}
    <i>{{ user.bio }}</i>
    {% else %}
    <i>This user has not provided a bio.</i>
    {% endif %}
    {# 下面是电影清单 注释 #}
    <h3>{{ user.username }}'s Watch List ({{ movies|length }})</h3>
    <ul>
        {% for movie in movies %}
        <li>{{movie.year}} - {{ movie.name}}</li>
        {% endfor %}
    </ul>
</body>

</html>